<?php
class module_landing extends module {
	
	function __call($name, $arg) {
		
		if (strpos($name, ".info") !== false) {
			$this->output();
			return;
		}
		
		// set theme
		/* @var $theme module_theme */
		$theme = module::get("theme");
		$theme->setTheme("landing_".strtolower($name), false);
		
		// disable vdjo.com features
		config::getInstance()->uservoice = false;

		// add generic js for landing pages
		$doc = document::getInstance();
		$doc->addJS("templates/landing/js/play.js");
		
		// save state for template
		request::set("playlistPlayRequest", $name);
		
		$this->output();
	}
	
}
?>